package com.ten_4_4.hiring.company.service;

import java.util.List;

import com.ten_4_4.hiring.comm.PageModel;
import com.ten_4_4.hiring.company.dao.PositionDao;
import com.ten_4_4.hiring.company.po.PositionPo;

public class PositionService {

	private PositionDao positionDao = new PositionDao();

	public List<PositionPo> listAllPosition() {
		return positionDao.listAllPosition();
	}

	public PageModel<PositionPo> listPositionPaging(String searchText, int pageNo, int pageSize) {
		return positionDao .listPositionPaging(searchText, pageNo, pageSize);
	}

	public PositionPo showPositionDetail(int positionId) {
		return positionDao.showPositionDetail(positionId);
	}

}
